WatchList Tool – Methods
The following table lists and describes methods of the WatchList Tool. Methods are accessed using the control's script editor.
Note: If a property or method in the script editor has two forms with the same name, one form exists for legacy support and the other form is current. When possible, use the current form. To select the current form, append .X. to the name of the object to which the property or method applies, and then enter the property or method name. For instance, enter MyObject.X.MyProperty. If a property or method in the script editor has only one form, the X method might or might not apply. The
column in the table below indicates whether or not a property or method is accessible using the X method.
| Method |
|
Description |
|---|---|---|
|
Yes |
The AboutBox method displays an About dialog box for the control. SyntaxAboutBox() ExampleThe following examples launch an About dialog box for the control. Copy
AboutBox
|
|
|
Yes |
||
|
Yes |
||
|
Yes |
||
|
No |
The AlarmAcknowledge method acknowledges an alarm. |
|
|
No |
The CaptureMouse method forces mouse events to fire. While the mouse is being captured, mouse events will continue to fire on the capturing entity regardless of current mouse position. This function better facilitates dragging objects on views, such as splitters to allow for more flexible layout capabilities. Automatically released on left mouse button release. Context menus are not displayed while capturing. If the function is called on a windowed tool, the function sets capture to that window. If called on a non-windowed tool, it sets capture to TheView and tracks which tool is "captured," altering its mouse event functions to always fire for that tool until released. |
|
|
Yes |
The Clear method clears the contents and values of the object. |
|
|
No |
The ClearMenu method clears all custom items from the context menu. Syntax
Parameters
Return Values
|
|
|
Yes |
||
|
Yes |
The ExportToXml method dumps the data in the dictionary to an XML string. |
|
|
No |
||
|
No |
The GetDlgCtrlID method returns the numeric resource identifier of the control within TheView. |
|
|
No |
The GetGroup method returns the object group to which an object belongs, and returns null if the object does not belong to a group. The GroupID property returns the GroupID. Calling GetGroup is equivalent to calling TheView GetGroupByID and passing the value of the object’s GroupID property, and is provided for convenience. |
|
|
Yes |
The HistoryAlarms method calls the Alarm History dialog box, which shows the alarm history of an individual alarm, and provides options for showing only particular types of alarm events. See Alarm History for more information. |
|
|
No |
||
|
Yes |
The HistoryValues method calls the History Values dialog box, which shows all the history records for a given point, including additional information if the history name came from the PNT. See History Records for more information. |
|
|
No |
||
|
Yes |
The ImportFromXml method loads data from the dictionary object in XML form. The Boolean parameter in ImportFromXml determines whether or not duplicate points will be replaced from the stored XML. |
|
|
No |
The IsSelected method indicates if the tool or control is selected. Can be used with [ContextMenuAutoSelect]. |
|
|
No |
The LayerName method gets the name of the layer on which the object resides. |
|
|
No |
The Move method moves an object by the specified amount, relative to its current position. |
|
|
No |
The OnUpdate method updates the control to ensure that any property modifications have taken effect. |
|
|
No |
The OnUpdateResize method updates the control to ensure that any modifications to its boundary have taken effect. |
|
|
No |
The OnUpdateStyle method updates the control to ensure that any modifications to its style properties have taken effect. |
|
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
No |
The RegisterPointForChangeNotice method registers an unrelated point on a screen that may change its value. Used in conjunction with EventPointChange. |
|
|
No |
||
|
Yes |
||
|
No |
The RunInitialize method runs the object’s EventInitialize event code. |
|
|
No |
This method is not used. |
|
|
No |
The Select method selects the tool or control. "True" to select, "false" to clear. Can be used with [ContextMenuAutoSelect]. |
|
|
No |
The SetFocus method sets the focus to the control. |
|
|
No |
||
|
No |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
||
|
Yes |
||
|
No |
The X method returns an object that lists properties and methods specific to an ActiveX control. This method is only available for some ActiveX controls. |


